package main;

public class BinaryNode {
	
	private BinaryNode zero;
	private BinaryNode one;
	private char c;
	private int weight;
	private boolean nil;
	private boolean visited = false;
	
	public BinaryNode(char c, int weight, BinaryNode zero, BinaryNode one, boolean nil){
		this.c = c;
		this.weight = weight;
		this.zero = zero;
		this.one = one;
		this.nil=nil;
	}
	
	public BinaryNode getOne(){
		return one;
	}
	
	public BinaryNode getZero(){
		return zero;
	}
	
	public int getWeight(){
		return weight;
	}
	
	public char getChar(){
		return c;
	}
	
	public boolean nil(){
		return nil;
	}
	
	public boolean visited(){
		return visited;
	}
	
	public void setVisited(boolean visited){
		this.visited = visited;
	}
	
	public void setZero(BinaryNode bn){
		this.zero = bn;
	}
	
	public void setOne(BinaryNode bn){
		this.one = bn;
	}
}
